﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;

namespace Web_Blog.ConnectDB
{
    public class ConnectDB
    {
        public SqlConnection LayKetNoi()
        {
            String connstr = ConfigurationManager.ConnectionStrings["LCDanh"].ConnectionString;
            //String connstr = ConfigurationManager.ConnectionStrings["Dom"].ConnectionString;
            SqlConnection conn = new SqlConnection(connstr);
            //
            return conn;
        }
    }
}